home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_087 / claz / claz.doc < prev    next >
Text File  |  1992-05-06  |  4KB  |  96 lines

  1.      ***************    CLAZ - V2.0 - 05/31/87    ****************
  2.      ***************       by Steve Ludtke        ****************
  3.  
  4.      Ahh, that wasn't so long was it. Here it is all you laser printer
  5. fans, version 2.0 . For those of you that never saw the earlier version, 
  6. good. This program will take your favorite IFF pictures and let you display
  7. them on any POSTSCRIPT device, ie - a laser printer. 
  8.  
  9.      Many of the promised changes have been made :
  10. 1) The program now deals properly with HAM pictures. (Yea !!)
  11. 2) You can now select the output filespec, including SER: .
  12. 3) You can now scale your pictures to your taste.
  13. 4) I included the (messy) source code in this arc'ed release.
  14.  
  15.      Things I (sadly) did not get to :
  16. 1) Sorry, E and F are still the same color.
  17. 2) You can scale to your hearts content, but unless you want to
  18.    modify the program code, you can't rotate.
  19.  
  20. ----
  21.  
  22.      Now, how to use it :
  23. claz [infile [outfile [x_start y_start x_scal y_scal] [H]]]
  24.  
  25.      Infile and outfile are pretty easy, and devices are valid for outfile.
  26. So, if you actually have the laser printer connected directly to your
  27. Amiga, you can use SER: as the output file (don't forget to set the
  28. speed, etc with preferences). The brackets above indicate what is optional.
  29. If you don't enter anything at all for parameters, you will be prompted
  30. for infile, but the other values will go to their defaults. X_start and
  31. y_start are the x and y coords of the lower left-hand corner of the picture.
  32. I don't know about other printers, but on the Apple LaserWriter, they are
  33. 1/72 of an inch. X_scal and y_scal are the x and y output widths in the
  34. same units as x and y_start. ie - if x_scal and y_scal are both 72, you
  35. will get a 1 X 1 inch output picture. If you add the optional H, the
  36. 'showpage' command won't be added to the end of the file. This means,
  37. the next picture you output after this one will go on the same page as
  38. this one. Oh, I forgot to mention that the data is still appended to the
  39. end of the output file, so if you use the same filespec twice, you will
  40. end up with one file with both pictures in it.
  41.  
  42. ----
  43.  
  44.      Ok, now for the problem solution section. I only got one complaint
  45. about the last version. It guru'ed, no matter how it was used. Stupid me,
  46. I forgot the one thing I have in my startup sequence that many people
  47. don't. I increase the scack size. So, if you run into a guru all the
  48. time, type 'stack 30000' and try again. 
  49.  
  50.      If you get the output file, but it won't print, try sending it with
  51. a terminal program, so you can see what error message the printer is
  52. sending back when it gets upset.
  53.  
  54.      Some misc hints : If you can, output the file to the ram disk. It will
  55. go quite a bit faster this way. A 320X200 bitmap will take about 64k. Don't 
  56. bother doing this with the input file, claz reads it all into memory
  57. at the beginning of the program, then closes the file. The program allocates
  58. 200k for itself when it starts up, so take this into account when deciding
  59. if you should use the ram disk.
  60.  
  61.     A rather IMPORTANT note: the program is not very neat about claning up 
  62. when it runs into an error. If you have problems after an error, try 
  63. rebooting. (I know it's an easy thing to fix, but I'm lazy.)
  64.  
  65. Tech Notes :
  66.  
  67.     Yes, I released the source code this time, no matter how embarrasing
  68. it is. You may note that a lot of the math is strung out over several lines
  69. and is very inefficient. This is left over from when I was using Aztec C
  70. v 3.2 . For some reason it got really upset at lots of very straightforward
  71. math and crashed when you ran it (sometimes it wouldn't even compile). I 
  72. have 3.4 now, and all this is fixed, but redoing the math would be a pain,
  73. so this is it for now.
  74.     You may want to mess around with the postscript program that appears 
  75. somewhere near the middle of the program. A few quick changes and you 
  76. can have any rotation, etc ... your heart desires. 
  77.     The IFF file is converted to a 4 bit gray scale, with F's changed to
  78. E's because of the annoying look of absolute white when printing most
  79. pictures. This is easy to change too if you desire, just set HEX[15]='F'.
  80.  
  81. --------
  82.  
  83. Anyway, have fun. If you have any comments, questions, or flames (all of 
  84. which I would appreciate except the flames), try any of these :
  85.  
  86. BITNET : STEVEL@CITIAGO
  87. ARPANET : STEVEL@TYBALT.CALTECH.EDU
  88. Genie : LUDTKE
  89.  
  90.      -or-
  91.  
  92. Steve Ludtke
  93. 406 Yale Circle
  94. Glenwood Springs, CO  81601
  95.  
  96.